package server.movement;

import packet.transfer.write.WritingDbg;
import java.awt.Point;

public class ChairMovement extends AbstractLifeMovement {

    private int unk;

    public ChairMovement(int type, Point position, int duration, int newstate) {
	super(type, position, duration, newstate);
    }

    public int getUnk() {
	return unk;
    }

    public void setUnk(int unk) {
	this.unk = unk;
    }

    @Override
    public void serialize(WritingDbg packet) {
	packet.write(getType());
	packet.writeShort(getPosition().x);
	packet.writeShort(getPosition().y);
	packet.writeShort(unk);
	packet.write(getNewstate());
	packet.writeShort(getDuration());
    }
}

